<style>
    .form-group{
        margin-bottom: 20px;
    }

</style>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_title" data-rule="required" class="form-control" name="row[hoteltitle]" type="text" value="">
        </div>
    </div>

    <!--
    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_hoteldetail" data-rule="required" class="form-control" name="row[h_hoteldetail]" type="text" value="" placeholder="比如:酒店创建时间xx年">
        </div>
    </div>

    <div class="form-group">
        <label for="h_title" class="control-label col-xs-12 col-sm-2">酒店星数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_startCount" data-rule="required" class="form-control" name="row[h_startCount]" type="number" value="" placeholder="请输入0-5之间的数字">
        </div>
    </div>
-->
    <div class="form-group">
        <label for="h_tel" class="control-label col-xs-12 col-sm-2">酒店电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_tel" class="form-control" name="row[h_tel]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="h_tel" class="control-label col-xs-12 col-sm-2">酒店手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_phone" data-rule="required" placeholder="配置手机号，可以接收短信推送" class="form-control" name="row[h_phone]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选择城市:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="city" data-rule="required" class="form-control" name="row[h_areaid]" >
                <option value="">请选择</option>
                {foreach name="city" item="vo"}
                <option value="{$vo.areaId}">{$vo.areaName}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group" id="shiid" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">选择市级:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="h_areadid" data-rule="required" class="form-control" name="row[h_areadid]" >
            </select>

          <!--  <select id="h_areadid" data-rule="required" class="form-control" name="row[h_areadid]" >
                <option value="" pid="0">请选择</option>
                {foreach name="citylist" item="vo"}
                <option pid="{$vo.parentId}" value="{$vo.areaId}">{$vo.areaName}</option>
                {/foreach}
            </select>-->
        </div>
    </div>

    <div class="form-group" id="area" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">选择商圈:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-12" id="areasel">

            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开业时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-h_opentime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[h_opentime]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">装修时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-h_remodeltime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[h_remodeltime]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="h_storey" class="control-label col-xs-12 col-sm-2">客房数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_storey" data-rule="required" class="form-control" name="row[h_guestroom]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="h_storey" class="control-label col-xs-12 col-sm-2">评论数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_point" data-rule="required" class="form-control" name="row[h_point]" placeholder="这里只作为临时使用，评论分 1 一般 2 普通 3 很好 4 推荐 5 超棒,输入数字范围：1-5" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标签:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">
                {foreach $labels as $key=>$vo}
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="h_lebals[]" checked value="{$vo.id}"> {$vo.ltitle}
                </label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">房型:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">
                {foreach $htypes as $key=>$vo}
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="h_htypes[]" checked value="{$vo.id}"> {$vo.ttitle}
                </label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">酒店属性:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-8">
                {foreach $types as $key=>$vo}
                <label class="checkbox-inline checkbox" style="line-height: 24px;">
                    <input type="checkbox"   name="h_types[]" checked value="{$vo.id}"> {$vo.ttitle}
                </label>
                {/foreach}
            </div>
        </div>
    </div>


<!--    <div class="form-group">
        <label for="h_storey" class="control-label col-xs-12 col-sm-2">楼层数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_storey" data-rule="required" class="form-control" name="row[h_storey]" type="number" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="h_unit" class="control-label col-xs-12 col-sm-2">单位:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="h_unit" data-rule="required" class="form-control" name="row[h_dw]" type="text" value="">
        </div>
    </div>-->

    <div class="form-group">
        <label for="c-thumb" class="control-label col-xs-12 col-sm-2">酒店封面:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb" class="form-control"  name="row[h_imgs]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-imagethumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/webp" data-multiple="true" data-preview-id="p-thumb"><i class="fa fa-upload"></i>上传</button></span>
                    <span><button type="button" id="fachoose-imagethumb" class="btn btn-primary fachoose" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
        </div>
    </div>


    <!--<div class="form-group">-->
        <!--<label for="h_read" class="control-label col-xs-12 col-sm-2">订房必读:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<textarea id="h_read" class="form-control" name="row[h_read]"></textarea>-->
        <!--</div>-->
    <!--</div>-->


    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">酒店详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[h_content]" id="c-editor" cols="60" rows="5" class="form-control"></textarea>
        </div>
    </div>

<!--    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">扣款说明:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[h_payment]" id="c-h_payment" cols="60" rows="5" class="form-control"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">服务提供方:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[h_service]" id="c-h_service" cols="60" rows="5" class="form-control"></textarea>
        </div>
    </div>-->

<!--    <div class="form-group">
        <label for="h_qualification" class="control-label col-xs-12 col-sm-2">酒店资质:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="h_qualification" class="form-control" name="row[h_qualification]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-h_qualification" class="btn btn-danger plupload" data-input-id="h_qualification" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p_qualification"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-h_qualification" class="btn btn-primary fachoose" data-input-id="h_qualification" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p_qualification"></ul>
        </div>
    </div>-->




<!--    <div class="form-group">-->
<!--        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店地址:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="h_address" data-rule="required" class="form-control" name="row[h_address]" type="text" value="" placeholder="请在地图里选择">-->
<!--        </div>-->
<!--    </div>-->


        <div class="form-group">
            <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店地址:</label>
            <div class="col-xs-12 col-sm-8">
            <input type="text" data-rule="required" class="form-control" name="row[h_address]" id="h_address" placeholder="酒店地址">
            </div>
        </div>


    <div class="form-group">
        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店经度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[lng]" id="lng" placeholder="酒店经度">
        </div>
    </div>


    <div class="form-group">
        <label for="h_address" class="control-label col-xs-12 col-sm-2">酒店纬度:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[lat]" id="lat" placeholder="酒店纬度">
        </div>
    </div>

        <button style="margin-left: 17%" type="button" class="btn btn-primary" data-toggle='addresspicker' data-input-id="h_address" data-lng-id="lng" data-lat-id="lat">点击选择地址获取经纬度</button>

    <div class="form-group" style="margin-top: 15px">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[h_status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


